package leetcode.code1221;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution1221 implements IDebug {

	public abstract int balancedStringSplit(String s);

	private void debug(String s, int expect) {
		int result = this.balancedStringSplit(s);
		HelpDebug.compare(expect, result);
	}

	@Override
	public void debug1() {
		String s = "RLRRLLRLRL";
		Integer expect = 4;
		this.debug(s, expect);
	}

	@Override
	public void debug2() {
		String s = "RLLLLRRRLR";
		Integer expect = 3;
		this.debug(s, expect);
	}

	@Override
	public void debug3() {
		String s = "LLLLRRRR";
		Integer expect = 1;
		this.debug(s, expect);

	}

	@Override
	public void debug4() {
		String s = "RLRRRLLRLL";
		Integer expect = 2;
		this.debug(s, expect);
	}

}
